/*****************************************************************
File name   : api_fibocom.h
Author      : liukaihua 
Version     : Ver1.0.0
Date        : 2022-07-17
Description : 关于网络的数据解析
Others      : 
History     : 
    1. Date:
       Author: ID:
       Modification:
    2. ...
*****************************************************************/

#ifndef __API_FIBOCOM_H_
#define __API_FIBOCOM_H_

#include "stdint.h"
#include "at_fibocom_cmd_table.h"

extern NET_Fibocom_CB_t g_net_fibocom_cb_t;
extern volatile QueueHandle_t NET_Fibocom_State_Queue_Handle;
extern volatile QueueHandle_t NET_Fibocom_Data_Queue_Handle;
extern TaskHandle_t NET_Fibocom_StateTask;                       /// @function: 
extern TaskHandle_t NET_Fibocom_DataTask;                      /// @function: 


/*******************************4G相关管脚************************************/
#define FIB_RESET_PIN												 GPIO_PIN_12
#define FIB_RESET_GPIO_PORT                   GPIOA
#define FIB_RESET_GPIO_CLK                    RCU_GPIOA

#define FIB_POWER_PIN												 GPIO_PIN_11
#define FIB_POWER_GPIO_PORT                   GPIOA
#define FIB_POWER_GPIO_CLK                    RCU_GPIOA

/****************************************************************************/ 

void Func_NetInfo_Init(void);
void NetFibocom_SendCMD(const char *at_cmd, uint16_t len);
void API_Fibocom_RcvData_Thread(void *argument);
void API_Fibocom_SendData_Thread(void *argument);
void NET_TickMng_Work(void);
void API_Fibocom_Bsp_Init(void);

#endif
/* [] END OF FILE */
